/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  height: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .el-header {
    padding: 10px;
  }
  
  .header-content {
    flex-direction: column;
  }
  
  .header-center {
    width: 100%;
    margin: 10px 0;
  }
  
  .card-stats {
    justify-content: center;
  }
}

/* 移动端适配 */
@media (max-width: 480px) {
  .el-drawer {
    width: 80% !important;
  }
  
  .floating-button {
    right: 10px;
    bottom: 10px;
  }
}

/* 全局过渡效果 */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.3s;
}
.fade-enter, .fade-leave-to {
  opacity: 0;
}

.slide-enter-active, .slide-leave-active {
  transition: transform 0.3s;
}
.slide-enter, .slide-leave-to {
  transform: translateY(20px);
  opacity: 0;
}

/* 通用按钮样式 */
.floating-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 文本溢出处理 */
.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c0c4cc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #909399;
}

/* 主容器样式 */
.main-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 头部样式 */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
}

.header-center {
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
}

.card-stats {
  display: flex;
  margin-right: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.stat-item i {
  margin-right: 5px;
}

.current-time {
  margin-right: 15px;
  font-size: 14px;
  color: #606266;
}

/* 主内容区域样式 */
.el-main {
  padding: 20px;
  overflow-y: auto;
}

/* 抽屉样式 */
.filter-section {
  margin-bottom: 20px;
  padding: 0 15px;
}

.filter-section h4 {
  margin-bottom: 10px;
  color: #606266;
}

.drawer-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 15px;
  text-align: right;
  background-color: #fff;
  border-top: 1px solid #e4e7ed;
}

/* 按钮组样式 */
.batch-actions {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f2f6fc;
  border-radius: 4px;
} 